package com.greentravel.model;

/**
 * 交通线路实体类
 * 存储公交、地铁的线路信息
 */
public class Route {
    private int id; // 线路ID
    private String routeType; // 线路类型（公交、地铁）
    private String routeName; // 线路名称
    private String startStation; // 起始站
    private String endStation; // 终点站
    private String keyStations; // 主要站点
    private String runningTime; // 运行时间
    private String region; // 所在地区

    // 默认构造方法
    public Route() {
    }

    // 带参数的构造方法
    public Route(int id, String routeType, String routeName, String startStation,
            String endStation, String keyStations, String runningTime, String region) {
        this.id = id;
        this.routeType = routeType;
        this.routeName = routeName;
        this.startStation = startStation;
        this.endStation = endStation;
        this.keyStations = keyStations;
        this.runningTime = runningTime;
        this.region = region;
    }

    // getter和setter方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRouteType() {
        return routeType;
    }

    public void setRouteType(String routeType) {
        this.routeType = routeType;
    }

    public String getRouteName() {
        return routeName;
    }

    public void setRouteName(String routeName) {
        this.routeName = routeName;
    }

    public String getStartStation() {
        return startStation;
    }

    public void setStartStation(String startStation) {
        this.startStation = startStation;
    }

    public String getEndStation() {
        return endStation;
    }

    public void setEndStation(String endStation) {
        this.endStation = endStation;
    }

    public String getKeyStations() {
        return keyStations;
    }

    public void setKeyStations(String keyStations) {
        this.keyStations = keyStations;
    }

    public String getRunningTime() {
        return runningTime;
    }

    public void setRunningTime(String runningTime) {
        this.runningTime = runningTime;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    @Override
    public String toString() {
        return "Route{" +
                "id=" + id +
                ", routeType='" + routeType + '\'' +
                ", routeName='" + routeName + '\'' +
                ", startStation='" + startStation + '\'' +
                ", endStation='" + endStation + '\'' +
                ", keyStations='" + keyStations + '\'' +
                ", runningTime='" + runningTime + '\'' +
                ", region='" + region + '\'' +
                '}';
    }
}